<template>
    <div>
        <div class="detail">
            <ul>
                <li v-if="list.length==0">暂无监控</li>
                <li v-for="item in list" :key="item.value">
                    <a :href="item.addressUrl" style="color:#000"><i class="iconfont icon-shipin"></i>
                        <p>{{item.name}}</p>
                    </a>
                </li>
            </ul>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            list: []
        }
    },
    mounted() {
        this.getDetails()
    },
    methods: {
        getDetails() {
            this.$api.video.details({
                id: this.$route.query.siteId
            }).then(res => {
                if (res.success) {
                    this.list = res.data.list1
                }
            });
        }
    }
}
</script>

<style lang="less">
.detail {
  ul {
    display: flex;
    padding: 0;
    flex-wrap: wrap;
  }
  li {
    flex: 0 0 33%;
    text-align: center;
  }
  i {
    font-size: 2rem !important;
  }
  p {
    width: 5rem;
    margin: 0 auto 1rem;
  }
  a:link {
    font-size: 12px;
    color: #000000;
    text-decoration: none;
  }
  a:visited {
    font-size: 12px;
    color: #000000;
    text-decoration: none;
  }
  a:hover {
    font-size: 12px;
    color: #000000;
    text-decoration: none;
  }
}
</style>
